<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta content="telephone=no" name="format-detection">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1;user-scalable=no;">
    <title>1起购</title>
    <link rel="stylesheet" href="/statics/view/css/bootstrap.css">
    <link rel="stylesheet" href="/statics/view/css/style.css">
    <link rel="stylesheet" href="/statics/view/css/member.css">
    <link rel="stylesheet" href="/statics/view/css/order3.css">
    <script charset="utf-8" src="/statics/view/js/jquery.min.js"></script>
    <script charset="utf-8" src="/statics/view/js/global.js"></script>
    <script charset="utf-8" src="/statics/view/js/bootstrap.min.js"></script>
    <script charset="utf-8" src="/statics/view/js/template.js"></script>
    <script charset="utf-8" src="/statics/view/js/stickTop.js"></script>
    <script type='text/javascript' src="/statics/view/js/jquery.form.js"></script>
    <script type="text/javascript" src="/statics/layer.m/layer.m.js"></script>

    <style type="text/css">
        .details_con li .tb-out-of-stock{
            border: 1px dashed #bbb;
            color:#bbb;
            cursor: not-allowed;
        }
        .no-selected{
            background: #ffe8e8 none repeat scroll 0 0;
            border: 2px solid #be0106;
            margin: -1px;
        }
        /*动态返回顶部*/
        .fixed_box { position: fixed; bottom: .5rem; right: .5rem;display: none; }
    </style>
</head>

<body>
<div class="fanhui_cou">
    <div class="fanhui_1"></div>
    <div class="fanhui_ding">顶部</div>
</div>
<header class="header">
    <div class="fix_nav">
        <div style="max-width:768px;margin:0 auto;background:#db3652;position: relative;">
            <a class="nav-left back-icon" href="javascript:history.back();">返回</a>

            <div class="tit">订单信息</div>
            <a class="nav-right icon-home" href="/dbs/index.html">首页</a>
        </div>
    </div>
</header>

<div class="container mb50">
    <div class="row">

        <ul class="list-group">
            <li class="list-group-item text-primary">商品信息</li>
            <div class="list-group_12">
                <li class="list-group-item hproduct clearfix ">
                    <a href="/dbs/product-${entity.productId}-${entity.dbTimes.timesNo}.html">
                        <div class="p-pic"><img style="max-height:100px;margin:auto;" class="img-responsive"
                                                alt="${entity.name}" src="${entity.productMedium}"></div>
                        <div class="p-info">
                            <p class="item-name">${entity.name}</p>

                            <p class="mb0 old-price">总需：${entity.dbTimes.quantity} 人次 </p>

                            <p class="mb0 old-price">期号：${entity.dbTimes.timesNo} </p>

                            <p class="mb0 old-price">幸运号码：<span class="red">${entity.dbTimes.timesCode}</span></p>

                            <p class="mb0 old-price">揭晓时间:${entity.dbTimes.endDate} </p>

                            <p class="mb0 old-price">本期参与：${entity.quantity}人次</p>
                        </div>
                    </a>
                </li>

            </div>
        </ul>


        <div class="list-group">
            <a href="javascript:toInvoice();"><p class="list-group-item text-primary"
                                                 style="border-bottom-width: 0px;font-size:14px;">商品状态</p></a>
            <label class="list-group-item pay_radio" style="line-height: 12px;">
                <span class="gary">购得商品</span>  <span class="gary pull-right">

            ${entity.dbTimes.endDate?string("MM-dd HH:mm")}
            </span>
            </label>

            <label class="list-group-item pay_radio" style="line-height: 12px;">
                <span class="gary">确认收货地址</span><span class="gary pull-right">

            [#if entity.shippingDate??]${entity.shippingDate?string("MM-dd HH:mm")}[#else]<a
                    href="/member/receiver/list?tag=/member/dbRecord/winDetail-${entity.id}">完善收货地址</a>[/#if]
            </span></label>
            <label class="list-group-item pay_radio" style="line-height: 12px;">
                <span class="gary">商品派发</span><span class="gary pull-right">

            [#if entity.shippingDate??]
                [#if entity.shippingStartDate??] ${entity.shippingStartDate?string("MM-dd HH:mm")}[#else]请耐心等待..[/#if]
            [/#if]
            </span></label>
            <label class="list-group-item pay_radio" style="line-height: 12px;">
                <span class="gary">确认收货</span><span class="gary pull-right">
            [#if entity.shippingStartDate??]
                [#if entity.shippingEndDate??] ${entity.shippingEndDate?string("MM-dd HH:mm")}[#else]<a
                        class="dialog-confirm" href="/member/dbRecord/winDetail-${entity.id}-sh">确认收货</a> [/#if]
            [/#if]

            </span></label>
        [#if entity.shippingEndDate??]
            <label class="list-group-item pay_radio" style="line-height: 12px;">
                <span class="red">已收货</span><span class="gary pull-right">

                [#if entity.isShare??]已晒单[#else]<a href="/member/dbShare-tip-${entity.id}">我要晒单</a>[/#if]
            </span></label>
        [/#if]
        </div>
    [#if entity.shippingDate]
        <div class="list-group">
            <p class="list-group-item text-primary">收货地址</p>
            <a href="" class="address clearfix">
                <p><span class="black mr5">收件人：${entity.consignee}</span><span>电话：${entity.phone}</span></p>

                <p class="mb0">${entity.areaName} &nbsp; ${entity.address}</p>
            </a>

        </div>
    [/#if]
    [#if entity.shippingStartDate]
        <div class="list-group">
            <a href="javascript:toInvoice();"><p class="list-group-item text-primary"
                                                 style="border-bottom-width: 0px;font-size:14px;">物流信息</p></a>
            <label class="list-group-item pay_radio" style="line-height: 12px;">
                <span class="gary">物流公司：   ${entity.shippingMethodName}</span>
            </label>

            <label class="list-group-item pay_radio" style="line-height: 12px;">
                <span class="gary">运单号码：${entity.shippingSn}</span></label>
            [#if traces??]
                [#list traces as t]
                    <label class="list-group-item pay_radio" style="line-height: 12px;">
                        <span class="gary">${t.acceptStation}</span><span class="gary pull-right">${t.acceptTime}</span></label>
                [/#list]
            [/#if]
        </div>
    [/#if]
    </div>
</div>
<div class="fixed-foot">

</div>

<script type="text/javascript">
    $(function(){
        $(".dialog-confirm").click(function(){
            var href=$(this).attr("href");
            layer.open({
                title: '提示',
                content: ' 您确认已经收到货物了？',
                btn: ['确定', '取消'],
                yes: function(index){
                    window.location.href=href;
                }
            });
            return false;
        });
    });
</script>
</body>
</html>